<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>欢迎登录后台管理系统</title>
<link href="admin/css/style.css" rel="stylesheet" type="text/css" />
<script language="JavaScript" src="admin/js/jquery.js"></script>
<script src="admin/js/cloud.js" type="text/javascript"></script>
<link href="admin/plugin/artDialog/artDialog/skins/blue.css" rel="stylesheet" />
<script src="admin/plugin/artDialog/artDialog/artDialog.min.js" type="text/javascript"></script>
<script src="admin/plugin/artDialog/artDialog/artDialog.plugins.min.js" type="text/javascript"></script>
<script src="admin/plugin/artDialog/dialog.js" type="text/javascript"></script>

<script language="javascript">
	function login(userName, password) {
        showMask('正在处理，请稍后...');
		$.ajax({
			url: 'webAPI/login',
			type: 'POST',
			data: {
				'userName': userName,
				'password': password
			},
			dataType: 'json',
			success: function (data) {
				hideMask();

				if (data.status == '0') {
					location.href = 'admin/main.html';
				} else {
                    showNotice(data.msg);
				}
			}
		});
	}

    $(function () {
        $('.loginbox').css({ 'position': 'absolute', 'left': ($(window).width() - 692) / 2 });
        $(window).resize(function () {
            $('.loginbox').css({ 'position': 'absolute', 'left': ($(window).width() - 692) / 2 });
        })

        $('#btnLogin').click(function () {
            var userName = $('#txtUserName').val();
            var password = $('#txtPassword').val();

            if (userName == '' || password == '') {
                showNotice('请填写用户名密码');
                return false;
            }

            login(userName, password);
        });
    });
</script> 

</head>

<body style="background-color:#1c77ac; background-image:url(admin/images/light.png); background-repeat:no-repeat; background-position:center top; overflow:hidden;">

    <div id="mainBody">
      <div id="cloud1" class="cloud"></div>
      <div id="cloud2" class="cloud"></div>
    </div>

<div class="logintop">    
    <span>欢迎登录后台管理界面平台</span>    
    <ul>
    </ul>    
    </div>
    
    <div class="loginbody">
    
    <span class="systemlogo"></span> 
       
    <div class="loginbox">
    
    <ul>
    <li>
    	<input type="text" class="loginuser" id="txtUserName" name="txtUserName" onclick="JavaScript: this.value = ''" />
    </li>
    <li>
    	<input type="password" class="loginpwd" id="txtPassword" name="txtPassword" onclick="JavaScript: this.value = ''" />
    </li>
    <li>
    	<input type="button" class="loginbtn" id="btnLogin" name="btnLogin" value="登录" />
    </li>

    
    </ul>
    
    
    </div>
    
    </div>
    
    
    
    <div class="loginbm">版权所有  2015  <a href="http://www.hyweb.com.cn">会友科技</a></div>
	

</body>

</html>